
package net.vistiyos;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;

import net.vistiyos.autenticacion.AuthToken;
import net.vistiyos.busquedas.Buscar;
import net.vistiyos.exception.GetDataSerieException;
import net.vistiyos.exception.NotSignInException;
import net.vistiyos.modelo.Serie;
import net.vistiyos.modelo.Usuario;

import org.w3c.dom.DOMException;

public class Main {

	public static void main(String[] args) throws NotSignInException, NumberFormatException, DOMException, GetDataSerieException, IOException {
		AuthToken.setCredenciales("15", "6K7yy9l1m9os0IN6qsfa");
		Usuario.login("vistiyos", "11ju89");
		ArrayList<Serie> series = Buscar.buscarSerie("blue");
		Iterator<Serie> it = series.iterator();
		while (it.hasNext()){
			System.out.println(it.next());
		}
	}
}